instrumentResult.editPage = {

    getGridParam: function () {
        var _this = this;
        return {
            type: 'grid',
            id: 'instrument-result-edit-list-grid',
            url: instrumentResult.baseUrl + '/queries/raw',
            service: 'instrumentResultServiceImpl',
            dbTable: 'T_INSTRUMENT_RESULT',
            columns: instrumentResult.getEditListColumns(),
            page: true,
            filterOpen: true,
            /*onCellClick : function(field, row) {
                field === 'id' && _this.loadDetailPage(row.id);
            },*/
            /*toolbar : [ {
                type : 'button',
                text : 'GIKAM.BUTTON.INSERT',
                icon : 'add',
                onClick : function() {
                    Gikam.preInsert({
                        modalTitle : 'BASELINE.BASEDATA.INSTRUMENTRESULTS.MODAL.ADD',
                        fields : instrumentResult.getBaseInfoFormFields(),
                        url : instrumentResult.baseUrl
                    }).done(function(id) {
                        Gikam.getComp('instrument-result-edit-list-grid').refresh();
                    });
                }
            }, {
                type : 'button',
                text : 'GIKAM.BUTTON.DELETE',
                icon : 'remove-row',
                onClick : function() {
                    Gikam.getComp('instrument-result-edit-list-grid').deleteRows(instrumentResult.baseUrl);
                }
            } ]*/
        }
    },

    loadDetailPage: function (id) {
        workspace.window.load(instrumentResult.baseUrl + '/page/detail' + Gikam.param({
            id: id
        }));
    },

    create: function () {
        var _this = this;
        Gikam.create('layout', {
            id: 'instrument-result-edit-list-layout',
            renderTo: workspace.window.$dom,
            center: {
                items: [this.getGridParam()]
            }
        });
    },

    init: function () {
        this.create();
    }
};
